package com.tinyseed.emcp.api.basicdata.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/***
 * @ClassName: VProducePollute
 * @Description: 设备分组列表视图
 * @Auther: Harlan.Xiong
 * @Date: 2019-11-30 0:05
 * @version : V1.0
 */
@Data
@Table(name = "v_produce_pollute")
@Entity()
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VproducePollute implements Serializable {
    @Id // 添加一个空的id标识，因为jpa在映射实体是需要一个id，这个必须
    private Long id;

    /**
     * 产污治污关系表ID
     */
    @Column(name = "produce_pollute_id")
    private Long producePolluteId;
    /**
     * 车间ID
     */
    @Column(name = "shop_id")
    private String shopId;

    /**
     * 车间名称
     */
    @Column(name = "shop_name")
    private String shopName;

    /**
     * 产污检测点ID
     */
    @Column(name = "produce_id")
    private Long produceId;

    /**
     * 产污检测点名称
     */
    @Column(name = "produce_name")
    private String produceName;

    /**
     * 治污检测点ID
     */
    @Column(name = "pollute_id")
    private Long polluteId;

    /**
     * 治污检测点名称
     */
    @Column(name = "pollute_name")
    private String polluteName;

    /**
     * 备用关系 1：用  2：备
     */
    @Column(name = "relation")
    private String relation;
}
